package com.zsc.springcloud;

import org.springframework.boot.WebApplicationType;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.cloud.config.server.EnableConfigServer;

/**
 * http://localhost:60000/config-consumer/dev/master
 * http://localhost:60000/master/config-consumer-dev.yml
 */
@SpringBootApplication
@EnableConfigServer
public class ConfigServerApp {

    public static void main(String[] args) {
        new SpringApplicationBuilder(ConfigServerApp.class)
                .web(WebApplicationType.SERVLET)
                .run(args);
    }
}
